home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…tion Library 4 (Reseller) / Apple Ref. & Pres. Lib.v4.0.iso / 6-Apple⁄DEC Alliance / Solutions & Networking Guide / Macintosh Networking Guide / Macintosh Networking Guide / card_21891.txt < prev    next >
Text File  |  1990-04-17  |  17KB  |  660 lines

  1. -- card: 21891 from stack: in
  2. -- bmap block id: 22226
  3. -- flags: 0000
  4. -- background id: 18894
  5. -- name: Network RoomMac
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global env,service,holder,prodname4,prodname5,network1,sol
  9.   set hilite of bkgnd btn "Application Level" to false
  10.   set hilite of bkgnd btn "Network Level" to true
  11.   set hilite of bkgnd btn "Hardware Level" to false
  12.   set hilite of bkgnd btn id 43 to false
  13.   set hilite of bkgnd btn id 52 to false
  14.   put "Network Level" into fld "Floorname"
  15.   put empty into cd fld "Protocol"
  16.   put empty into cd fld "Protocol2"
  17.   if env is "Mac" then
  18.     put "Macintosh" into cd fld "CPU"
  19.     put "Macintosh to Macintosh" && sol && "Room" into bkgnd fld 5 --id 41 --"solName"
  20.   else
  21.     put env into cd fld "CPU"
  22.     put env && "to Macintosh" && sol && "Room" into bkgnd fld 5 --id 41 --"solName"
  23.   end if
  24.   put "Macintosh Network Services" & return & "click on the Macintosh" into fld "Tell"
  25.   put card field (env && "Network¬†Services") of card "Mac Grid" into holder
  26.   if holder is empty
  27.   then
  28.   put return & "No Solutions Installed" & return & "in this version" into fld "Tell"
  29.   exit openCard
  30. end if
  31. if service is empty then
  32.   if env is "Digital" then put "File Service" into service
  33.   if env is "IBM" then put "Terminal Emulation" into service
  34.   if env is "Mac" then put "File Service" into service
  35.   if env is "PC" then put "File Service" into service
  36.   if env is "Tandem" then put "Terminal Emulation" into service
  37.   if env is "UNIX" then put "File service" into service
  38.   if env is "Wang" then put "Terminal Emulation" into service
  39.   if network1 <> empty then
  40.     if network1 contains "File Transfer" then put "File Transfer" into service
  41.     if network1 contains "CL/1" then put "File Service" into service
  42.     if network1 contains "Client" then put "File Service" into service
  43.     if network1 contains "Translation" then put "Translation" into service
  44.     if network1 contains "Not" then put "Terminal Emulation" into service
  45.   end if
  46. end if
  47. put service into cd fld "Service"
  48. put "Macintosh side:" & return into cd fld "Side1"
  49. repeat with i = 1 to the number of lines of holder
  50.   if item 3 of line i of holder contains service then
  51.     if item 1 of line i of holder <> empty then
  52.       put item 1 of line i of holder & return after cd fld "Side1"
  53.     end if
  54.   end if
  55. end repeat
  56. if line 2 of cd fld "Side1" is empty then
  57.   put "No products of this type are installed in this version" after cd fld "Side1"
  58. end if
  59. if prodName4 <> empty
  60. then
  61. put "click for product info" into fld "click"
  62. put prodname4 into fld "Prodname"
  63. set hilite of bkgnd btn id 43 to true
  64. end if
  65. put "2nd Macintosh side:" & return into cd fld "Side2"
  66. repeat with i = 1 to the number of lines of holder
  67.   if item 3 of line i of holder contains service then
  68.     if item 1 of line i of holder <> empty then
  69.       put item 1 of line i of holder & return after cd fld "Side2"
  70.     end if
  71.   end if
  72. end repeat
  73. if line 2 of cd fld "Side2" is empty then
  74.   put "No products of this type are installed in this version" after cd fld "Side2"
  75. end if
  76. if prodName5 <> empty
  77. then
  78. put prodname5 into fld "Prodname2"
  79. set hilite of bkgnd btn id 52 to true
  80. put "click for product info" into fld "click2"
  81. end if
  82. pass openCard
  83. end openCard
  84.  
  85. on closeCard
  86.   hide cd fld "Side1"
  87.   put empty into cd fld "Side1"
  88.   hide cd fld "Side2"
  89.   put empty into cd fld "Side2"
  90.   put empty into fld "Prodname"
  91.   put empty into fld "Prodname2"
  92.   --put empty into cd fld "CPU"
  93.   put "" into fld "click"
  94.   put "" into fld "click2"
  95.   set hilite of bkgnd btn id 43 to false
  96.   set hilite of bkgnd btn id 52 to false
  97.   pass closeCard
  98. end closeCard
  99.  
  100. on clean
  101.   put empty into cd fld "Protocol"
  102.   put empty into cd fld "Protocol2"
  103.   put empty into cd fld "Service"
  104.   put empty into fld "Network"
  105.   pass clean
  106. end clean
  107.  
  108. on clean1
  109.   global prodname4,prodname5,protocol,protcol1
  110.   put empty into cd fld "Protocol"
  111.   put empty into cd fld "Protocol2"
  112.   put empty into cd fld "Service"
  113.   put empty into fld "Prodname"
  114.   put empty into fld "Prodname2"
  115.   set hilite of bkgnd btn id 52 to false
  116.   set hilite of bkgnd btn id 43 to false
  117.   put empty into prodname4
  118.   put empty into prodname5
  119.   put empty into protocol
  120.   put empty into protocol1
  121. end clean1
  122.  
  123.  
  124. -- part 91 (field)
  125. -- low flags: 01
  126. -- high flags: 0000
  127. -- rect: left=246 top=85 right=123 bottom=440
  128. -- title width / last selected line: 0
  129. -- icon id / first selected line: 0 / 0
  130. -- text alignment: 0
  131. -- font id: 242
  132. -- text size: 9
  133. -- style flags: 0
  134. -- line height: 12
  135. -- part name: Protocol2
  136. ----- HyperTalk script -----
  137. on mouseEnter
  138.   put "Product Protocol" & return & "go to Hardware for info" into fld "Tell"
  139. end mouseEnter
  140.  
  141. on mouseLeave
  142.   put empty into fld "Tell"
  143. end mouseleave
  144.  
  145. on mouseUp
  146.   send mouseUp to bkgnd btn "Hardware Level"
  147. end mouseUp
  148.  
  149.  
  150. -- part 86 (field)
  151. -- low flags: 01
  152. -- high flags: 0001
  153. -- rect: left=103 top=67 right=84 bottom=245
  154. -- title width / last selected line: 0
  155. -- icon id / first selected line: 0 / 0
  156. -- text alignment: 0
  157. -- font id: 156
  158. -- text size: 14
  159. -- style flags: 16640
  160. -- line height: 18
  161. -- part name: Title
  162.  
  163.  
  164. -- part 85 (field)
  165. -- low flags: 01
  166. -- high flags: 0001
  167. -- rect: left=244 top=67 right=84 bottom=429
  168. -- title width / last selected line: 0
  169. -- icon id / first selected line: 0 / 0
  170. -- text alignment: 0
  171. -- font id: 156
  172. -- text size: 14
  173. -- style flags: 16640
  174. -- line height: 18
  175. -- part name: Service
  176. ----- HyperTalk script -----
  177. on mouseEnter
  178.   put "Current" & return & "Network Service" into fld "Tell"
  179. end mouseEnter
  180.  
  181. on mouseLeave
  182.   put empty into fld "Tell"
  183. end mouseleave
  184.  
  185.  
  186.  
  187. -- part 1 (button)
  188. -- low flags: 00
  189. -- high flags: 0000
  190. -- rect: left=0 top=0 right=303 bottom=30
  191. -- title width / last selected line: 0
  192. -- icon id / first selected line: 0 / 0
  193. -- text alignment: 1
  194. -- font id: 0
  195. -- text size: 12
  196. -- style flags: 0
  197. -- line height: 16
  198. -- part name: 
  199. ----- HyperTalk script -----
  200. on mouseUp
  201.   global env,service,hall,currentfloor,lastRoom
  202.   put env && service into lastRoom
  203.   put "2  Network Services" into currentfloor
  204.   set lockscreen to true
  205.   go to cd hall
  206.   unlock screen with dissolve
  207. end mouseUp
  208.  
  209. on mouseEnter
  210.   changeCurs 6069
  211.   put "Exit to Hall" & return & "click to go to hall" into fld "Tell"
  212. end mouseEnter
  213.  
  214. on mouseLeave
  215.   changeCurs 69
  216.   put empty into fld "Tell"
  217. end mouseLeave
  218.  
  219.  
  220. -- part 7 (field)
  221. -- low flags: 01
  222. -- high flags: 0000
  223. -- rect: left=412 top=147 right=166 bottom=453
  224. -- title width / last selected line: 0
  225. -- icon id / first selected line: 0 / 0
  226. -- text alignment: 0
  227. -- font id: 242
  228. -- text size: 9
  229. -- style flags: 8192
  230. -- line height: 12
  231. -- part name: CPU
  232.  
  233.  
  234. -- part 67 (field)
  235. -- low flags: 01
  236. -- high flags: 0000
  237. -- rect: left=57 top=85 right=119 bottom=242
  238. -- title width / last selected line: 0
  239. -- icon id / first selected line: 0 / 0
  240. -- text alignment: 65535
  241. -- font id: 242
  242. -- text size: 9
  243. -- style flags: 0
  244. -- line height: 12
  245. -- part name: Protocol
  246. ----- HyperTalk script -----
  247. on mouseEnter
  248.   global env
  249.   changeCurs 6069
  250.   put "Product Protocol" & return & "go to Hardware for info" into fld "Tell"
  251. end mouseEnter
  252.  
  253. on mouseLeave
  254.   changeCurs 69
  255.   put empty into fld "Tell"
  256. end mouseleave
  257.  
  258. on mouseUp
  259.   send mouseUp to bkgnd btn "Hardware Level"
  260. end mouseUp
  261.  
  262.  
  263. -- part 79 (button)
  264. -- low flags: 00
  265. -- high flags: A000
  266. -- rect: left=78 top=198 right=210 bottom=129
  267. -- title width / last selected line: 0
  268. -- icon id / first selected line: 0 / 0
  269. -- text alignment: 0
  270. -- font id: 242
  271. -- text size: 9
  272. -- style flags: 0
  273. -- line height: 12
  274. -- part name: services
  275. ----- HyperTalk script -----
  276. on mouseUp
  277.   global Help
  278.   if Help then exit mouseUp
  279.   send mouseUp to btn id 77
  280. end mouseUp
  281.  
  282. on mouseEnter
  283.   global Help
  284.   if Help then
  285.     put "'chooser' Button" & return & return & "Click this button to go to the Chooser screen" && "and select other network services" into field explainer
  286.   else
  287.     ChangeCurs 13000
  288.     put "'Chooser' Button" & return & "click to change service" into fld "Tell"
  289.   end if
  290. end mouseEnter
  291.  
  292. on mouseLeave
  293.   global Help
  294.   if help then
  295.   else
  296.     changeCurs 6069
  297.     put empty into fld "Tell"
  298.   end if
  299. end mouseleave
  300.  
  301. On mouseDown
  302.   Global ClickSND
  303.   play ClickSND
  304. End mouseDown
  305.  
  306.  
  307. -- part 78 (button)
  308. -- low flags: 00
  309. -- high flags: 0000
  310. -- rect: left=62 top=128 right=212 bottom=149
  311. -- title width / last selected line: 0
  312. -- icon id / first selected line: 0 / 0
  313. -- text alignment: 1
  314. -- font id: 0
  315. -- text size: 12
  316. -- style flags: 0
  317. -- line height: 16
  318. -- part name: Macintosh
  319. ----- HyperTalk script -----
  320. on mouseUp
  321.   set the visible of cd fld "Side1" to not the visible of cd fld "Side1"
  322. end mouseUp
  323.  
  324. on mouseEnter
  325.   changeCurs 6069
  326.   put "Show Macintosh Products" & return & "click to select product" into fld "Tell"
  327. end mouseEnter
  328.  
  329. on mouseLeave
  330.   changeCurs 69
  331.   put empty into fld "Tell"
  332. end mouseleave
  333.  
  334.  
  335. -- part 64 (field)
  336. -- low flags: 81
  337. -- high flags: 0007
  338. -- rect: left=31 top=85 right=192 bottom=245
  339. -- title width / last selected line: 0
  340. -- icon id / first selected line: 0 / 0
  341. -- text alignment: 65535
  342. -- font id: 3
  343. -- text size: 9
  344. -- style flags: 0
  345. -- line height: 12
  346. -- part name: Side1
  347. ----- HyperTalk script -----
  348. on mouseUp
  349.   global holder,prodname4,protocol
  350.   put selectionAndHiliter() into cardline
  351.   put line cardline of me into prodname4
  352.   if prodname4 contains "side" then
  353.     hide cd btn "side1Hiliter"
  354.     hide me
  355.     put empty into prodname4
  356.     exit mouseup
  357.   end if
  358.   if prodname4 is empty or prodname4 contains "no Products" or prodname4 contains "this version" then
  359.     answer "Empty Choice!" with "Try Again"
  360.     exit mouseup
  361.   end if
  362.   put prodname4 into fld "Prodname"
  363.   set hilite of bkgnd btn id 43 to true
  364.   put "click for product info" into fld "click"
  365.   repeat with i = 1 to the number of lines of holder
  366.     if item 1 of line i of holder is prodname4 then
  367.       put item 6 of line i of holder into dotnames
  368.       put offset("‚Ä¢",dotnames) into num
  369.       if num is empty or num is 0 then
  370.         put "Click below left CPU to see more about" && prodname4 into cd fld "Protocol"
  371.         exit repeat
  372.       else
  373.         put char 1 to (num - 1) of dotnames into protocol
  374.         put prodname4 && "uses " & protocol into cd fld "Protocol"
  375.       end if
  376.     end if
  377.   end repeat
  378.   hide cd btn "side1Hiliter"
  379.   hide me
  380. end mouseUP
  381.  
  382. On mouseDown
  383.   Global ClickSND
  384.   play ClickSND
  385. End mouseDown
  386. on mouseEnter
  387.  
  388.   changeCurs 6069
  389.   put "Products Field" & return & "click to select a product" into fld "Tell"
  390. end mouseEnter
  391.  
  392. on mouseLeave
  393.   changeCurs 69
  394.   put empty into fld "Tell"
  395. end mouseleave
  396.  
  397.  
  398.  
  399. -- part 82 (button)
  400. -- low flags: 00
  401. -- high flags: A000
  402. -- rect: left=410 top=198 right=210 bottom=461
  403. -- title width / last selected line: 0
  404. -- icon id / first selected line: 0 / 0
  405. -- text alignment: 0
  406. -- font id: 242
  407. -- text size: 9
  408. -- style flags: 0
  409. -- line height: 12
  410. -- part name: services
  411. ----- HyperTalk script -----
  412. on mouseUp
  413.   global Help
  414.   if Help then exit mouseUp
  415.   send mouseUp to btn id 80
  416. end mouseUp
  417.  
  418. on mouseEnter
  419.   global Help
  420.   if Help then
  421.     put "'chooser' Button" & return & return & "Click this button to go to the Chooser screen" && "and select other network services" into field explainer
  422.   else
  423.     ChangeCurs 13000
  424.     put "'Chooser' Button" & return & "click to change service" into fld "Tell"
  425.   end if
  426. end mouseEnter
  427.  
  428. on mouseLeave
  429.   global Help
  430.   if help then
  431.   else
  432.     changeCurs 6069
  433.     put empty into fld "Tell"
  434.   end if
  435. end mouseleave
  436.  
  437. On mouseDown
  438.   Global ClickSND
  439.   play ClickSND
  440. End mouseDown
  441.  
  442.  
  443. -- part 81 (button)
  444. -- low flags: 00
  445. -- high flags: 0000
  446. -- rect: left=376 top=130 right=213 bottom=482
  447. -- title width / last selected line: 0
  448. -- icon id / first selected line: 0 / 0
  449. -- text alignment: 1
  450. -- font id: 0
  451. -- text size: 12
  452. -- style flags: 0
  453. -- line height: 16
  454. -- part name: Host
  455. ----- HyperTalk script -----
  456. on mouseUp
  457.   set the visible of cd fld "Side2" to not the visible of cd fld "Side2"
  458. end mouseUp
  459.  
  460. on mouseEnter
  461.   global env
  462.   changeCurs 6069
  463.   put "Show" && env && "Products" & return & "click to select product" into fld "Tell"
  464. end mouseEnter
  465.  
  466. on mouseLeave
  467.   changeCurs 69
  468.   put empty into fld "Tell"
  469. end mouseleave
  470.  
  471.  
  472. -- part 84 (button)
  473. -- low flags: 00
  474. -- high flags: A003
  475. -- rect: left=180 top=217 right=239 bottom=339
  476. -- title width / last selected line: 0
  477. -- icon id / first selected line: 0 / 0
  478. -- text alignment: 1
  479. -- font id: 0
  480. -- text size: 12
  481. -- style flags: 8192
  482. -- line height: 16
  483. -- part name: Click for Services Chooser
  484. ----- HyperTalk script -----
  485. on mouseEnter
  486.   global env
  487.   changeCurs 6069
  488.   put env && "Services Chooser" & return & "click to change service" into fld "Tell"
  489. end mouseEnter
  490.  
  491. on mouseLeave
  492.   changeCurs 69
  493.   put empty into fld "Tell"
  494. end mouseleave
  495.  
  496. On mouseDown
  497.   Global ClickSND
  498.   play ClickSND
  499. End mouseDown
  500.  
  501. on mouseUp
  502.   Global prodname4,prodname5,protocol
  503.   get the loc of me
  504.   put it into MLoc
  505.   Put "Zoomer " & MLoc & "," & MLoc & "," & "254,151,278,166" into Zoomy
  506.   do Zoomy
  507.   Zoomer 254,151,278,166,8,4,507,336
  508.   unlock screen with dissolve
  509.   set cursor to busy
  510.   put "" into fld "Prodname"
  511.   put "" into fld "Prodname2"
  512.   hide cd fld "Side1"
  513.   hide cd fld "Side2"
  514.   set hilite of bkgnd btn id 43 to false
  515.   set hilite of bkgnd btn id 52 to false
  516.   put empty into cd fld "Side1"
  517.   put empty into cd fld "Side2"
  518.   put empty into cd fld "Protocol"
  519.   put empty into cd fld "Protocol2"
  520.   put "" into fld "click"
  521.   put "" into fld "click2"
  522.   put empty into prodname4
  523.   put empty into prodname5
  524.   put empty into protocol
  525.   set lockscreen to true
  526.   push card
  527.   go to cd "White"
  528.   go to cd "Chooser"
  529.   set cursor to hand
  530.   unlock screen with dissolve
  531. end mouseUp
  532.  
  533.  
  534.  
  535.  
  536. -- part 89 (button)
  537. -- low flags: 80
  538. -- high flags: 4000
  539. -- rect: left=32 top=85 right=99 bottom=228
  540. -- title width / last selected line: 0
  541. -- icon id / first selected line: 0 / 0
  542. -- text alignment: 1
  543. -- font id: 0
  544. -- text size: 12
  545. -- style flags: 0
  546. -- line height: 16
  547. -- part name: side1Hiliter
  548.  
  549.  
  550. -- part 65 (field)
  551. -- low flags: 81
  552. -- high flags: 0007
  553. -- rect: left=246 top=85 right=192 bottom=464
  554. -- title width / last selected line: 0
  555. -- icon id / first selected line: 0 / 0
  556. -- text alignment: 0
  557. -- font id: 3
  558. -- text size: 9
  559. -- style flags: 0
  560. -- line height: 12
  561. -- part name: Side2
  562. ----- HyperTalk script -----
  563. on mouseUp
  564.   global holder,prodname5,protocol1
  565.   put selectionAndHiliter() into cardline
  566.   put line cardline of me into prodname5
  567.   if prodname5 is empty or prodname5 contains "no Products" or prodname5 contains "this version" then
  568.     answer "Empty Choice!" with "Try Again"
  569.     put empty into prodname5
  570.     exit mouseup
  571.   end if
  572.   if prodname5 contains "side:" then
  573.     hide cd btn "side2Hiliter"
  574.     hide me
  575.     exit mouseup
  576.   end if
  577.   --‚àÜ Set up drawer below right CPU
  578.   put prodname5 into fld "Prodname2"
  579.   set hilite of bkgnd btn id 52 to true
  580.   put "click for product info" into fld "click2"
  581.   repeat with i = 1 to the number of lines of holder
  582.     if item 1 of line i of holder is prodname5 then
  583.       put item 6 of line i of holder into dotnames
  584.       put offset("‚Ä¢",dotnames) into num
  585.       if num is empty or num is 0 then
  586.         put "Click below right CPU to see more about" && prodname5 into cd fld "Protocol2"
  587.         exit repeat
  588.       else
  589.         put char 1 to (num - 1) of dotnames into protocol1
  590.         put prodname5 && "uses " & protocol1 into cd fld "Protocol2"
  591.       end if
  592.     end if
  593.   end repeat
  594.   hide cd btn "side2Hiliter"
  595.   hide me
  596. end mouseUP
  597.  
  598. On mouseDown
  599.   Global ClickSND
  600.   play ClickSND
  601. End mouseDown
  602.  
  603. on mouseEnter
  604.   global env
  605.   changeCurs 6069
  606.   put "Macintosh Products Field" & return & "click to select a product" into fld "Tell"
  607. end mouseEnter
  608.  
  609. on mouseLeave
  610.   changeCurs 69
  611.   put empty into fld "Tell"
  612. end mouseleave
  613.  
  614.  
  615.  
  616.  
  617. -- part 87 (button)
  618. -- low flags: 80
  619. -- high flags: 4000
  620. -- rect: left=246 top=86 right=99 bottom=447
  621. -- title width / last selected line: 0
  622. -- icon id / first selected line: 0 / 0
  623. -- text alignment: 1
  624. -- font id: 0
  625. -- text size: 12
  626. -- style flags: 0
  627. -- line height: 16
  628. -- part name: side2Hiliter
  629. ----- HyperTalk script -----
  630.  
  631.  
  632.  
  633.  
  634. -- part contents for background part 41
  635. ----- text -----
  636. Macintosh to Macintosh Network¬†Services Room
  637.  
  638. -- part contents for background part 68
  639. ----- text -----
  640. Network Level
  641.  
  642. -- part contents for card part 7
  643. ----- text -----
  644. Macintosh
  645.  
  646. -- part contents for card part 85
  647. ----- text -----
  648. File Service
  649.  
  650. -- part contents for card part 86
  651. ----- text -----
  652. Current Service:
  653.  
  654. -- part contents for card part 67
  655. ----- text -----
  656. AppleShare File Server 2.0 uses LocalTalk/Ethernet
  657.  
  658. -- part contents for card part 91
  659. ----- text -----
  660. AppleShare File Server 2.0 uses LocalTalk/Ethernet